package com.mxnavi.smartd.sdk.database.dao;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;

import com.mxnavi.smartd.sdk.bean.UserCarDriveRecord;

import java.util.List;

/**
 * @author ：zhong.jw
 * @date ：Created in 2024/2/22 14:54
 */
@Dao
public interface UserCarDriveRecordDao {

    @Insert
    void insertUserDriveRecord(UserCarDriveRecord record);

    @Query("select * from user_car_drive_record")
    List<UserCarDriveRecord> queryAllRecordList();

    @Delete
    void deleteUserDriveRecord(UserCarDriveRecord record);
}
